#pragma once

#include "BaseModel.h"

namespace wlog {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace TL_Tools;
	using namespace TL_Libs;

	public ref class User : public BaseModel
	{
	public:
		User(void){
			this->name = "";
			this->password = "";
			this->adm = "0";
			this->date_add = "";
			this->date_login = "";
			this->active = "1";
		};

		User(int num) : BaseModel(num){}

		virtual Hashtable^ GetFields(void) override;
		ArrayList^ GetAll(void);
		Hashtable^ GetItemByName(String^ name);

	public:
		String^ name;
		String^ password;
		String^ adm;
		String^ date_add;
		String^ date_login;
		String^ active;

	};

}
